package com.finance.system.user.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户组关系表，存放用户与小组的关系信息
 * </p>
 *
 * @author whdong
 * @since 2019-12-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tbl_user_group_relation")
@ApiModel(value="UserGroupRelationEntity对象", description="用户组关系表，存放用户与小组的关系信息")
public class UserGroupRelationEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "组id")
    private Long groupId;

    @ApiModelProperty(value = "用户在该组的总消费")
    private BigDecimal totalCash;

    @ApiModelProperty(value = "组的创建日期")
    private LocalDateTime createAt;


}
